package avicit.im.lantop.basic.fieldmapset.dao.api;

import avicit.platform6.core.rest.msg.ResponseMsg;
import avicit.platform6.core.restclient.RestClient;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public class LantopFieldMapSetManagerDaoApi {


    /**
     * 服务编码
     */
    private static final String SERVICE_CODE = "filebasicmanager";

    private static final String BASE_PATH = "/api/avicit/im/lantop/basic/fieldmapset/action/rest/LantopFieldMapSetManagerDaoRest";

    @Autowired
    private RestClient restClient;


    /**
     *
     * Title: 表MDM_DB_LIMIT_INFO的数据库操作类 Description:
     * 包含对表MDM_DB_LIMIT_INFO(业务预警值信息（已经根据多条预警原始值拼装过）)的增、删、改、查、构建等基本操作 Copyriht:
     * Copyright (c) 2012 Company: AVICIT Co., Ltd
     *
     * @author 朱锋
     * @version 1.0 Date: 2014-09-11
     *
     */
    public void callProcedure(String s, ArrayList<Object> params) {
        String url = BASE_PATH + "/callProcedure";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, params, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }
}
